package com.cesare.service;


import com.cesare.pojo.Blog;
import com.cesare.vo.BlogQuery;
import com.cesare.vo.SearchBlog;

import java.util.List;
import java.util.Map;

public interface BlogService {

    public List<Blog> getAllBLog();

    public void addBlog(Blog blog);

    public void updateBlog(Blog blog);

    public Blog getBlogById(Long id);

    public void deleteBlog(Long id);

    public List<Blog> searchBlog(Blog blog);

    public List<BlogQuery> getBlogBySearch(SearchBlog searchBlog);

    public List<Blog> getBlogByTypeId(Long id);

    public List<Blog> getBlogByTagId(Long id);

    public List<Blog> getIndexBlog();

    public List<Blog> getRecommendBlog();

    //博客详情
    public Blog getDetailedBlog(Long id);

    public List<Blog> searchIndexBlog(String query);

    public Integer countBlog();
    public Map<String,List<Blog>> archiveBlog();
}
